package com.ews.onlineexchange.service.observer;

import javax.ejb.Stateless;
import javax.enterprise.event.Observes;
import javax.inject.Inject;

import com.ews.onlineexchange.model.Bulletin;
import com.ews.onlineexchange.service.SmsService;
import com.ews.onlineexchange.service.qualifier.BulletinPassEvent;

@Stateless
public class BulletinPassObserver {
	
	@Inject
	SmsService smsService;
	
	public void listenBulletinAudit(@Observes @BulletinPassEvent Bulletin bulletin) {
		smsService.addPassMessageToBuyer(bulletin);
	}
	
}
